
device_model:
	protoc --go_out=. proto/device_model/device_model.proto --go-grpc_out=. proto/device_model/device_model.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/device_model/device_model_http.yaml:\
	.  proto/device_model/device_model.proto
	
device_gateway:
	protoc --go_out=. proto/device_gateway/device_gateway.proto --go-grpc_out=. proto/device_gateway/device_gateway.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/device_gateway/device_gateway_http.yaml:\
	.  proto/device_gateway/device_gateway.proto

dtu:
	protoc --go_out=gosdk/dtu proto/dtu/dtu.proto --go-grpc_out=gosdk/dtu proto/dtu/dtu.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/dtu/dtu_http.yaml:\
	gosdk/dtu  proto/dtu/dtu.proto

device:
	protoc --proto_path=proto  --go_out=. proto/device/device.proto --go-grpc_out=. proto/device/device.proto
	protoc --proto_path=proto --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/device/device_http.yaml:\
	.  proto/device/device.proto
auth:
	protoc --go_out=gosdk/auth proto/auth/auth.proto --go-grpc_out=gosdk/auth proto/auth/auth.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/auth/auth_http.yaml:\
	gosdk/auth  proto/auth/auth.proto
	
record:
	protoc --go_out=gosdk/record proto/record/record.proto --go-grpc_out=gosdk/record proto/record/record.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/record/record_http.yaml:\
	gosdk/record  proto/record/record.proto
	
water_tank:
	protoc --go_out=gosdk/water_tank proto/water_tank/water_tank.proto --go-grpc_out=gosdk/water_tank proto/water_tank/water_tank.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/water_tank/water_tank_http.yaml:\
	gosdk/water_tank  proto/water_tank/water_tank.proto
	
notice:
	protoc --go_out=gosdk/notice proto/notice/notice.proto --go-grpc_out=gosdk/notice proto/notice/notice.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/notice/notice_http.yaml:\
	gosdk/notice  proto/notice/notice.proto